<?php /* Smarty version 2.6.6, created on 2012-03-12 23:59:46
         compiled from myfriendrequests.tpl */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('insert', 'get_member_profilepicture', 'myfriendrequests.tpl', 23, false),array('insert', 'get_username_from_userid', 'myfriendrequests.tpl', 24, false),)), $this); ?>
<div id="main_wrap">
	<div class="center_wrap clearfix">
        <h2 class="no_bottom no_top">
        	<?php echo $this->_tpl_vars['lang302']; ?>

        </h2>
		<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "accountmenu.tpl", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>        
		<div class="right col1">
            <div class="cat_box_full clearfix"> 
                <ul id="search_nav" class="clearfix">
                    <li class="current"><?php echo $this->_tpl_vars['lang302']; ?>
<span></span></li>
                </ul>
                <div class="cat_body_full clearfix">
                  
                <?php if ($this->_tpl_vars['error'] != ""): ?>
                <?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "show_error.tpl", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
                <?php endif; ?>
                <?php if ($this->_tpl_vars['showmessage'] != ""): ?>
                <?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "show_message.tpl", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
                <?php endif; ?>
                  
                  <!-- LOOP START -->
                  <?php unset($this->_sections['i']);
$this->_sections['i']['name'] = 'i';
$this->_sections['i']['loop'] = is_array($_loop=$this->_tpl_vars['listvideos']) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$this->_sections['i']['show'] = true;
$this->_sections['i']['max'] = $this->_sections['i']['loop'];
$this->_sections['i']['step'] = 1;
$this->_sections['i']['start'] = $this->_sections['i']['step'] > 0 ? 0 : $this->_sections['i']['loop']-1;
if ($this->_sections['i']['show']) {
    $this->_sections['i']['total'] = $this->_sections['i']['loop'];
    if ($this->_sections['i']['total'] == 0)
        $this->_sections['i']['show'] = false;
} else
    $this->_sections['i']['total'] = 0;
if ($this->_sections['i']['show']):

            for ($this->_sections['i']['index'] = $this->_sections['i']['start'], $this->_sections['i']['iteration'] = 1;
                 $this->_sections['i']['iteration'] <= $this->_sections['i']['total'];
                 $this->_sections['i']['index'] += $this->_sections['i']['step'], $this->_sections['i']['iteration']++):
$this->_sections['i']['rownum'] = $this->_sections['i']['iteration'];
$this->_sections['i']['index_prev'] = $this->_sections['i']['index'] - $this->_sections['i']['step'];
$this->_sections['i']['index_next'] = $this->_sections['i']['index'] + $this->_sections['i']['step'];
$this->_sections['i']['first']      = ($this->_sections['i']['iteration'] == 1);
$this->_sections['i']['last']       = ($this->_sections['i']['iteration'] == $this->_sections['i']['total']);
?>
                  <?php require_once(SMARTY_CORE_DIR . 'core.run_insert_handler.php');
echo smarty_core_run_insert_handler(array('args' => array('name' => 'get_member_profilepicture', 'assign' => 'profilefpic', 'value' => 'var', 'USERID' => $this->_tpl_vars['listvideos'][$this->_sections['i']['index']]['REQUESTER'])), $this); ?>

                  <h1><?php echo $this->_tpl_vars['lang303']; ?>
 <?php require_once(SMARTY_CORE_DIR . 'core.run_insert_handler.php');
echo smarty_core_run_insert_handler(array('args' => array('name' => 'get_username_from_userid', 'value' => 'var', 'USERID' => $this->_tpl_vars['listvideos'][$this->_sections['i']['index']]['REQUESTER'])), $this); ?>
</h1>
                  <div class="search_row">
                      <div class="aud_cont">
                          <span class="channel_thumb">
                            <a href="<?php echo $this->_tpl_vars['baseurl']; ?>
/members/profile/<?php echo $this->_tpl_vars['listvideos'][$this->_sections['i']['index']]['REQUESTER']; ?>
/<?php require_once(SMARTY_CORE_DIR . 'core.run_insert_handler.php');
echo smarty_core_run_insert_handler(array('args' => array('name' => 'get_username_from_userid', 'value' => 'var', 'USERID' => $this->_tpl_vars['listvideos'][$this->_sections['i']['index']]['REQUESTER'])), $this); ?>
" title="<?php echo $this->_tpl_vars['profilefname']; ?>
"><img src="<?php echo $this->_tpl_vars['membersprofilepicurl']; ?>
/thumbs/<?php echo $this->_tpl_vars['profilefpic']; ?>
" alt="<?php require_once(SMARTY_CORE_DIR . 'core.run_insert_handler.php');
echo smarty_core_run_insert_handler(array('args' => array('name' => 'get_username_from_userid', 'value' => 'var', 'USERID' => $this->_tpl_vars['listvideos'][$this->_sections['i']['index']]['REQUESTER'])), $this); ?>
"></a>
                          </span>
                      </div>
    
                      <h4 class="blue no_bottom"><a href="<?php echo $this->_tpl_vars['baseurl']; ?>
/members/profile/<?php echo $this->_tpl_vars['listvideos'][$this->_sections['i']['index']]['REQUESTER']; ?>
/<?php require_once(SMARTY_CORE_DIR . 'core.run_insert_handler.php');
echo smarty_core_run_insert_handler(array('args' => array('name' => 'get_username_from_userid', 'value' => 'var', 'USERID' => $this->_tpl_vars['listvideos'][$this->_sections['i']['index']]['REQUESTER'])), $this); ?>
"><?php require_once(SMARTY_CORE_DIR . 'core.run_insert_handler.php');
echo smarty_core_run_insert_handler(array('args' => array('name' => 'get_username_from_userid', 'USERID' => $this->_tpl_vars['listvideos'][$this->_sections['i']['index']]['REQUESTER'])), $this); ?>
</a></h4>
                      <?php if ($this->_tpl_vars['listvideos'][$this->_sections['i']['index']]['message'] != ""): ?>
                      <p align="left"><b><?php echo $this->_tpl_vars['lang268']; ?>
:</b> <?php echo $this->_tpl_vars['listvideos'][$this->_sections['i']['index']]['message']; ?>
</p>
                      <?php endif; ?>
                      <p class="text_gray2 no_bottom no_top">
                      	<table cellpadding="0" cellspacing="5" border="0">
                        <tr>
                        <td>
                        <form id="acceptform" name="acceptform" action="<?php echo $this->_tpl_vars['baseurl']; ?>
/myfriendrequests.php" method="post">
                        <input type="hidden" name="acceptRID" value="<?php echo $this->_tpl_vars['listvideos'][$this->_sections['i']['index']]['RID']; ?>
">
                        <input type="submit" name="acceptrequest" value="<?php echo $this->_tpl_vars['lang14']; ?>
" />
                        </form>
                        </td>
                        <td>
                        <form id="declineform" name="declineform" action="<?php echo $this->_tpl_vars['baseurl']; ?>
/myfriendrequests.php" method="post">
                        <input type="hidden" name="declineRID" value="<?php echo $this->_tpl_vars['listvideos'][$this->_sections['i']['index']]['RID']; ?>
">
                        <input type="submit" name="declinerequest" value="<?php echo $this->_tpl_vars['lang15']; ?>
" />
                        </form>
                        </td>
                        </tr>
                        </table>
                      </p>
                  </div>
                  <br />
                  <hr />
                  <br />
                  <?php endfor; endif; ?>
                  <!-- LOOP END -->
    
                </div>
  			</div>
		</div>
    	<div class="clear"></div>
	</div>
</div>

























    
            <?php unset($this->_sections['i']);
$this->_sections['i']['name'] = 'i';
$this->_sections['i']['loop'] = is_array($_loop=$this->_tpl_vars['listvideos']) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$this->_sections['i']['show'] = true;
$this->_sections['i']['max'] = $this->_sections['i']['loop'];
$this->_sections['i']['step'] = 1;
$this->_sections['i']['start'] = $this->_sections['i']['step'] > 0 ? 0 : $this->_sections['i']['loop']-1;
if ($this->_sections['i']['show']) {
    $this->_sections['i']['total'] = $this->_sections['i']['loop'];
    if ($this->_sections['i']['total'] == 0)
        $this->_sections['i']['show'] = false;
} else
    $this->_sections['i']['total'] = 0;
if ($this->_sections['i']['show']):

            for ($this->_sections['i']['index'] = $this->_sections['i']['start'], $this->_sections['i']['iteration'] = 1;
                 $this->_sections['i']['iteration'] <= $this->_sections['i']['total'];
                 $this->_sections['i']['index'] += $this->_sections['i']['step'], $this->_sections['i']['iteration']++):
$this->_sections['i']['rownum'] = $this->_sections['i']['iteration'];
$this->_sections['i']['index_prev'] = $this->_sections['i']['index'] - $this->_sections['i']['step'];
$this->_sections['i']['index_next'] = $this->_sections['i']['index'] + $this->_sections['i']['step'];
$this->_sections['i']['first']      = ($this->_sections['i']['iteration'] == 1);
$this->_sections['i']['last']       = ($this->_sections['i']['iteration'] == $this->_sections['i']['total']);
?>
            <ul class="vList_vFullSeries clearfix clear">
			<li>
            	<ul class="vList_vFullSeriesSub clearfix clear">
                    <center>
                    <table width="250px" cellpadding="0" cellspacing="0" border="0">
                    <tr>
                    <td>
                    <form id="acceptform" name="acceptform" action="<?php echo $this->_tpl_vars['baseurl']; ?>
/myfriendrequests.php" method="post">
                    <input type="hidden" name="acceptRID" value="<?php echo $this->_tpl_vars['listvideos'][$this->_sections['i']['index']]['RID']; ?>
">
                    <input type="hidden" name="acceptrequest" value="acceptrequest" />
        			<INPUT class="inputBox" type=image value="acceptrequest" src="<?php echo $this->_tpl_vars['imageurl']; ?>
/buttons/<?php echo $_SESSION['language']; ?>
/acceptsmall.gif" height="20px" style="height:20px;" border="0" name=acceptrequest>
                    </form>
                    </td>
                    <td>
                    <form id="declineform" name="declineform" action="<?php echo $this->_tpl_vars['baseurl']; ?>
/myfriendrequests.php" method="post">
                    <input type="hidden" name="declineRID" value="<?php echo $this->_tpl_vars['listvideos'][$this->_sections['i']['index']]['RID']; ?>
">
                    <input type="hidden" name="declinerequest" value="declinerequest" />
        			<INPUT class="inputBox" type=image value="declinerequest" src="<?php echo $this->_tpl_vars['imageurl']; ?>
/buttons/<?php echo $_SESSION['language']; ?>
/declinesmall.gif" height="20px" style="height:20px;" border="0" name=declinerequest>
                    </form>
                    </td>
                    </tr>
                    </table>
                    </center>
                    
            	</ul>         
			</li>
            </ul>
            <br />
            <?php endfor; endif; ?>